package com.mimiwang.comment.dao;

import com.mimiwang.comment.entity.AniComment;
import com.mimiwang.comment.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/5/2 16:35
 */


@Mapper
@Repository
public interface AnimalCommentDao {

//    此方法只能查出属于该animalId的评论的id，其余属性没有
    List<AniComment>  selectCommentByAnimalId(long animalId);
    int insert(AniComment aniComment);
    int delete(int commentId);
}
